package com.soft.bams.entity;

import com.soft.bams.exception.BalanceNotEnoughException;
import com.soft.bams.exception.LoanException;

public interface Loanable {
    // 贷款方法
    Account requestLoan(double money) throws LoanException;
    // 还贷方法
    Account payLoan(double money) throws BalanceNotEnoughException;
}
